/*
 *
 * Copyright (c) 2023 - future
 * @author fzh
 * @email e_341877120_mail@163.com
 * @link https://mvnrepository.com/search?q=io.github.xrfzh.cn
 *
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package cn.xrfzh.file.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
@TableName("sys_file")
public class SysUploadTask implements Serializable {

	// 主键
	private Long id;

	// 分片上传的uploadId
	private String uploadId;

	// 文件唯一标识（md5）
	private String fileIdentifier;

	// 文件名
	private String fileName;

	// 所属桶名
	private String bucketName;

	// 文件的key
	private String objectKey;

	// 文件URL
	private String fileUrl;

	// 文件大小（byte）
	private Long totalSize;

	// 每个分片大小（byte）
	private Long chunkSize;

	// 分片数量
	private Integer chunkNum;

}
